﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace docmgr.WinForm
{
    class DocumentBase:PrintDocument
    {
        public Font font = new Font("Verdana", 8, GraphicsUnit.Pixel);
        public Brush brush = new SolidBrush(Color.Black);//画刷
        public DialogResult showPrintPreviewDialog()
        {
            PrintPreviewDialog dialog = new PrintPreviewDialog();
            dialog.Document = this;
            return dialog.ShowDialog();
        }
        public DialogResult ShowPageSettingsDialog()
        {
            PageSetupDialog dialog = new PageSetupDialog();
            dialog.Document = this;
            return dialog.ShowDialog();
        }
    }
}
